package com.txts.road.app.message.model.dto;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

import jakarta.validation.constraints.*;

/**
 * 快捷用语表单对象
 *
 * @author baoyr
 * @since 2025-07-17 10:43
 */
@Getter
@Setter
@Schema(description = "快捷用语表单对象")
public class QuickMessageDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "快捷用语ID")
    @NotNull(message = "快捷用语ID不能为空")
    private Long id;

    @Schema(description = "用户ID(为空表示系统默认)")
    private Long userId;

    @Schema(description = "快捷用语内容")
    @NotBlank(message = "快捷用语内容不能为空")
    @Size(max=200, message="快捷用语内容长度不能超过200个字符")
    private String content;

    @Schema(description = "排序")
    private Integer sortOrder;

    @Schema(description = "使用次数")
    private Integer useCount;

   


}
